package com.dycloud.project.exception.file;


import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.connector.ClientAbortException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author : renhang
 * @description FileUploadExceptionAdvice
 * @date : 2025-07-04 10:03
 **/
@ControllerAdvice
@Slf4j
public class FileUploadExceptionAdvice {

    @ExceptionHandler(ClientAbortException.class)
    public void handleClientAbort() {
        // 忽略该异常，不打印 error 日志
        log.warn("Upload Mp4 ClientAbortException");
    }
}
